import {createApp} from 'vue'
import PhLoading from './main.vue'
export const PhGLoading =  {
    install(app:any){
        const dom = document.createElement("div"),
            loading = createApp(PhLoading),
            ins = loading.mount(dom) as InstanceType<typeof PhLoading>;
            document.body.appendChild(ins.$el)
        app.config.globalProperties.$phLoading = {
            show:ins.show,
            hide:ins.hide
        }
    }
}
export {PhLoading}
